gtk-demo: Ignore some lines in info
authorMatthias Clasen <mclasen@redhat.com>
Sun, 13 Sep 2020 14:45:03 +0000 (10:45 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 13 Sep 2020 18:42:03 +0000 (14:42 -0400)
Ignore lines starting with # in the info comment at
the top of source files. This will be used to add
keywords for search in following commits.

demos/gtk-demo/main.c

index 9abbd0f94374e76cc2970b5bda4a6e338ef49867..3011c3e890356f17fcdf80ca6c688540d1c15951 100644 (file)
@@ -581,6 +581,9 @@ load_file (const char *demoname,
               while (g_ascii_isspace (*(p + len - 1)))
                 len--;
 
+              if (*p == '#')
+                break;
+
               if (len > 0)
                 {
                   if (in_para)